/********************************************************************************
 *      Copyright:  (C) 2024 dengleen<dengleen@outlook.com>
 *                  All rights reserved.
 *
 *       Filename:  mqtt.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(06/05/24)
 *         Author:  dengleen<dengleen@outlook.com>
 *      ChangeLog:  1, Release initial version on "06/05/24 18:38:46"
 *                 
 ********************************************************************************/
#ifndef __MQTT_H__
#define __MQTT_H__

#define MQTT_SIZE1 128
#define MQTT_SIZE2 256

typedef struct mqtt_ctx_s
{
	char     hostname[MQTT_SIZE1];
	char     clientid[MQTT_SIZE1];
	char     username[MQTT_SIZE1];
	char     password[MQTT_SIZE1];
	int      port;

	char     pub_topic[MQTT_SIZE1];
	char     sub_topic[MQTT_SIZE1];
	char     payload[MQTT_SIZE2];
	int      keepalive;
	int      qos;
}mqtt_ctx_t;

#endif

